<?php
$act_id=$_REQUEST[id];
$db='phome_jat_pic';
$act=DbTouch($act_db,array('id'=>$act_id));

$lmt		= 'app_type ='.ACT_ID_ROOT." AND app_id =$act_id";
$nums		= DbTouch($db,'id',"count(*) as total",$lmt);
$p			= $_REQUEST['p'];
$page		= new page_obj($p,array("itemnum"=>9,"border"=>4,"row_count"=>$nums['total']));
$limit_str	= $page->get_limit_str();
$page_list	= $page->build_html_link("p");

$list=DbTouchAll($db,array('app_type'=>ACT_ID_ROOT,'app_id'=>$act_id),"*",'ORDER  BY time DESC '.$limit_str);
include("../public_act_head.php");
?>
<input type='hidden' value='<?=$jatData["id"]?>'  id="artcile_id"/>
<input type='hidden' value=''  id="session_id"/>
<input type='hidden' value='<?=$public_r['newsurl']?>'  id="newsurl"/>
<div class="popup-box" style="z-index:5000;display:none;">
	<table style="border:1px solid #999999;" cellspacing="0" cellpadding="0">
		<tr style="border:1px solid #999999;padding:0px;background:#2E80B2;"><td style="padding:0px;">		
			<div class="popup-top">
				<a class="popup-close" href="javascript:void(0);" onclick="popup_close();">&nbsp;</a>
				<div class="popup-title">发布预测</div>
			</div>
			</td></tr>
		<tr><td>
			<div class="popup-body"></div>
			<div class="popup-loading">加载中...</div>
		</td></tr>
	</table>
</div>
<div id="main">
 <div id="mainborder">
   <div id="leftcontents">
     <div class="content">
       <div class="title">
			<div style="float:left;">
				<a href='<?=$public_r[newsurl]?>/act/detail/?id=<?=$act[id]?>'><?=$act['title']?></a><h3>活动相册:</h3>
			</div>
		
	   	<div style="float:right;">
				<a href='<?=$public_r[newsurl]?>/act/detail/?v=u&id=<?=$act[id]?>'>上传更多照片</a>
		</div>
	</div>
       <div class="body">
         <div class="a_content">
           <div class="l">           
           </div>          
           <div class="clear"></div>         
			<div class='list_act_pic_r'>     
				<div class='list_act_pic2 menu-list'>						
						<?php 
						if($list){
							echo "<ul class='list-act-pic-ul'>";
						foreach($list as $k=>$vl){
						?>
						<li class='act-list-pic-item' style='float:left;padding:5px;clear:none;'>
							<div class='act-pic'>
								<a href="./?v=p&id=<?=$vl['id']?>"><img src='<?=getImgSizeUrl($public_r['newsurl'].$vl['url'],'136','136')?>'  width='136' title='<?=$vl['title']?>'/></a>
							</div>
							<div class='act-pic-title pics-list-<?=$vl[id]?>'><?=$vl['title']?></div>
							<div class='act-pic-opt'><?php if($vl[uid]==$lguserid){?><a href='javascript:editActPic("<?=$vl['id']?>");'>编辑</a><a href='javascript:deleteActPic("<?=$vl['id']?>");'>删除</a><?php }else{?><a>&nbsp;</a><?php }?></div>
						</li>
						<?php }
						echo '</ul>
						<div class="clear"></div>';
						}else{
						?>
						<div class='no-data'>还没有人上传照片</div>
						<?php }?>
				</div>
			<div class="page" style="height:40px;"><?=$page_list?></div>
			</div> 
         </div>
       </div>
       <div class="bottom"></div>
     </div>
   </div>
   <div id="rightcontent">
		<?php 
		include("public_block_focus.php");
		?>    
		<?php 
		include("public_block_review.php");
		?>       
   </div>
   <div class="clear"></div>
 </div>

<?php 
	include("../public_act_foot.php");
?>
